package com.ssmtest.service.serviceimpl;


import com.ssmtest.dao.TeacherDao;
import com.ssmtest.entity.Teacher;
import com.ssmtest.service.TeacherService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("teacherService")
public class TeacherServiceImpl implements TeacherService {
	//持有dao层
	@Resource
	private TeacherDao teacherDao;
	@Override
	public Teacher allowLogin(String teacherID, String password) {
     return teacherDao.allowLogin(teacherID,password);
	}
	@Override
	public Teacher getTeacherInfo(String teacherID) {
		return teacherDao.getTeacherInfo(teacherID);
	}
}
